home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
mebbs
/
logit99.lha
/
LOGIT.REXX
< prev
Wrap
OS/2 REXX Batch file
|
1994-07-24
|
1KB
|
53 lines
/* LOGIT by Keith Townsend */
DoorName = "LOGIT"
author = "Keith Townsend"
version= "0.99"
option results
address command "list MEBBSNET:MEBBSNET?.LOG > t:LOGLIST.TXT lformat %n"
address command "date >T:LOGDATE.TXT"
call open(file1,"t:LOGDATE.TXT","R")
x=readln(file1)
parse upper var x JUNK1 DT JUNK2
call close(file1)
say "Todays date is "DT
c=0
call open(file,"t:LOGLIST.TXT","R")
do until eof(file)
logname.c=readln(file)
if logname.c="" then call seeya
say "processing "logname.c
call logem
call cleanup
c=c+1
end
call close(file)
LOGEM:
if exists("Mebbsnet:"logname.c) then do
address command "copy MEBBSNET:"logname.c" to MEBBSNET:LOGS/"
end
return
cleanup:
if exists("Mebbsnet:LOGS/"||c||"-"||BBS||"-"||DT||".LOG") then do
say "A log for this date allready exists"
address command "delete MEBBSNET:LOGS/"logname.c
end
else do
say "Creating a log for "DT
address command "rename MEBBSNET:LOGS/"logname.c" as MEBBSNET:LOGS/"c"-"BBS"-"DT".LOG"
address command "delete MEBBSNET:"logname.c
end
return
seeya:
say "Thank you for using "Doorname" by "author
exit